package com.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oa.pojo.Department;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 添加部门
     * @param department
     */
    void addDepartment(Department department);

    /**
     * 删除部门
     * @param departmentId
     */
    void delDepartment(Integer departmentId);

    /**
     * 更改部门
     * @param department
     */
    void updateDepartment(Department department);

    /**
     * 查询部门
     * @return
     */
    List<Department> getDepartmentList();

    Department getDepartment(Integer deptId);

}
